package com.sbox.album.model;

import java.io.File;

public class PictureInfo {
	private String mFileName = "";
	private File mFile = null;
	private long mTime = 0;
	private long mSize = 0;
	private boolean mSelected = false;
	
	public PictureInfo(String fileName) {
		mFileName = fileName;
		mFile = new File(mFileName);
		
		mTime = mFile.lastModified();
		mSize = mFile.length();
	}
	
	public String getFileName() {
		return mFileName;
	}
	
	public String getName() {
		return mFile.getName();
	}
	
	public String getAlbumName() {
		return mFile.getParentFile().getName();
	}
	
	public long getTime() {
		return mTime;
	}
	
	public long getSize() {
		return mSize;
	}
	
	public boolean isSelected () {
		return mSelected;
	}
	
	public void setSelected(boolean selected) {
		mSelected = selected;
	}
}
